<template>
    <div>
        <h1>小熊二</h1>
        <h1>大伯给的{{food}}</h1>
    </div>
</template>

<script>

export default{
    data(){
        return{
            food:'',
        };
    },
    mounted(){
        this.$eventBus.$on("dabogei", (msg) => {
        console.log(msg);
        this.food = msg;
        });
    },
};
</script>

<style lang="scss" scoped>

</style>